package config

import "github.com/zeromicro/go-zero/rest"

type Config struct {
	rest.RestConf
	Auth struct {
		AccessSecret string
		AccessExpire int64
	}
	DB struct {
		DataSource      string
		MaxIdleConns    int
		MaxOpenConns    int
		ConnMaxLifetime int64
	}
	WX struct {
		AppID                 string
		AppSecret             string
		XYDNotifyUrl          string
		GoodsNotifyUrl        string
		XYDRefundDNotifyUrl   string
		GoodsRefundDNotifyUrl string
	}
	WxPay struct {
		MchID                 string
		MchCertSerialNumber   string
		PrivateKeyPath        string
		WechatCertificatePath string
		Apiv3Key              string
	}
	WY struct {
		BaseURL string
		Header  string
	}
	RegisterCoupon struct {
		Status    int
		CouponId int
	}
	RDS struct {
		Addr     string
		Password string
		DB       int
	}
}
